/*
 * vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker:
 *
 * defs.h
 *
 * C.C.Allison
 * chris.allison@hotmail.com
 *
 * Started: Sunday 23 December 2012, 19:43:27
 * Version: 0.00
 * Revision: $Id: defs.h 56 2013-04-02 10:11:02Z chris.charles.allison@gmail.com $
 * Last Modified: Tuesday  2 April 2013, 09:08:47
 */
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <regex.h>
#include <time.h>
#include <signal.h>
#include <fcntl.h>
#include <libgen.h>
#include <errno.h>
#include <limits.h>

/* for directory stuff */
#include <sys/types.h>
#include <dirent.h>

#define CCA_DEFAULT_DAEMONIZE "1"
#define CCA_DEFAULT_CONFIGFILE "/etc/qillsd.conf"
#define CCA_DEFAULT_SUMMARY_SIZE "500"
#define CCA_DEFAULT_BUFFERSIZE "2048000"
#define CCA_DEFAULT_SLEEPTIME "1"
#define CCA_DEFAULT_SUMMARIZE "0"
#define CCA_DEFAULT_FPOS "0"
#define CCA_DEFAULT_SEARCH "(ERROR:.*)"
#define CCA_DEFAULT_TIME_FORMAT "%Y-%m-%d %H:%M:%S"
#define CCA_DEFAULT_FILEBIN "/usr/bin/file"
#define CCA_DEFAULT_FILEBINARGS "-ib"
#define CCA_DEFAULT_GUNZIPBIN "/bin/gunzip"
#define CCA_DEFAULT_GUNZIPBINARGS "-c"
#define CCA_DEFAULT_UNZIPBIN "/usr/bin/unzip"
#define CCA_DEFAULT_UNZIPBINARGS "-p"
#define CCA_DEFAULT_INDEXROTATEDLOGFILES "1"
#define CCA_DEFAULT_RLFEXT ""
#define CCA_DEFAULT_MISSINGFILES "0"
#define CCA_DEFAULT_DBHOST "localhost"
#define CCA_DEFAULT_DBDB "qills"
#define CCA_DEFAULT_DBTABLE_SERVER "lognames"
#define CCA_DEFAULT_DBTABLE_LOG "loglines"
#define CCA_DEFAULT_DBUSER "logserver"
#define CCA_DEFAULT_DBPASS "logserver"
#define CCA_DEFAULT_DBENV "live"
#define CCA_DEFAULT_DBSERVICE "qills"
#define CCA_DEFAULT_DBTYPE "app"
#define CCA_DEFAULT_DBNUMBER "1"

#define CCA_HOME "/"
#define CCA_LOCK_FILE "/var/run/qillsd.pid"
#define MAX_MSG_LEN 4096
#define CCA_MAX_ROTATED_FILES 25
